package com.waijiaojun.tpo.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.waijiaojun.tpo.entity.Sentence;
import com.waijiaojun.tpo.repository.SentenceDao;

@Service
public class SentenceService{

    @Resource
    private SentenceDao sentenceDao;

    public int insert(Sentence pojo){
        return sentenceDao.insert(pojo);
    }

    public int insertSelective(Sentence pojo){
        return sentenceDao.insertSelective(pojo);
    }

    public int insertList(List<Sentence> pojos){
        return sentenceDao.insertList(pojos);
    }

    public int update(Sentence pojo){
        return sentenceDao.update(pojo);
    }
}
